package com.whfc.safety.param;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @ClasssName SafetyIssueAddParam
 * @Description 新增安全问题请求
 * @Author hw
 * @Date 2020/8/5 14:31
 * @Version 1.0
 */
@Data
public class SafetyIssueAddParam implements Serializable {


    /**
     * 问题类型ID
     */
    @NotNull
    private Long issueTypeId;
    /**
     * 检查内容
     */
    @NotEmpty
    @Size(min = 1,max = 50,message = "整改内容最长50个长度")
    private String content;
    /**
     * 整改要求
     */
    @NotEmpty
    @Size(min = 1,max = 200,message = "整改要求最长200个长度")
    private String require;
    /**
     * 整改期限 （天）
     */
    @NotNull
    @Max(value = 999,message = "整改期限不能超过3位数")
    private Integer duration;
}
